#ifndef SPHERE_H
#define SPHERE_H

#include "Objet.h"
#include "Intersection.h"
#include "Texture.h"

class Sphere : public Objet{
public:
	Sphere();
	Sphere(Point &p, float t);
	virtual ~Sphere();
	Point getCentre();
	float getTaille();
	bool intersection(Rayon &r, Intersection &i);
	Couleur getCouleur(const Intersection& i) const ;
	bool intersectionLocale(Rayon &r, Intersection &i);
	static void sphericalTextureCoordonnees(float& u, float& v, const Point& centre, const Point& point, Matrice* rotation);
	virtual void initialiserBoiteEnglobante();

private:
	float taille_;
};

#endif